package com.weixing.mall.provider.model.dto.cms;

import com.weixing.mall.base.enums.WhetherEnum;
import com.weixing.mall.provider.model.enums.cms.SubSiteEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Author wx
 * @Date 2019/7/25 16:31
 * @Version 1.0
 */
@Data
@ApiModel(description = "子站管理")
public class SubSiteDto {
    @ApiModelProperty(value="id")
    private Long id;


    @ApiModelProperty(value="子站名称")
    @NotNull(message="子站名称不能为空")
    private String siteName;

    @ApiModelProperty(value="子站域名")
    @NotNull(message="子站域名不能为空")
    private String siteDomain;

    @ApiModelProperty(value = "是否可用")
    @NotNull(message="状态不能为空")
    private WhetherEnum isEnable;

    @ApiModelProperty(value = "子站封面")
    @NotNull(message="子站图片不能为空")
    private String siteCover;

    @ApiModelProperty(value = "子站类型")
    @NotNull(message = "子站类型不能为空")
    private SubSiteEnum siteType;

    @ApiModelProperty(value = "分区ID")
    private Integer partitionId;

    @ApiModelProperty(value = "排序")
    private  Integer orderBy;


}
